home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-03 / qbasicpg.zip / SHOW.BAS < prev    next >
BASIC Source File  |  1989-08-31  |  457b  |  26 lines

  1. ' SHOW.BAS
  2. ' This program lets you view a data file in the current directory.
  3.  
  4. CLS
  5.  
  6. PRINT "The current directory contains the following files with ";
  7. PRINT "a .TXT extension:"
  8. PRINT
  9.  
  10. FILES "*.TXT"
  11.  
  12. PRINT
  13. INPUT "Which file would you like to display?  ", filename$
  14.  
  15. OPEN filename$ FOR INPUT AS #1
  16.  
  17. PRINT
  18. PRINT "---------- "; UCASE$(filename$); " ----------"
  19. PRINT
  20.  
  21. DO WHILE (NOT EOF(1))
  22.     LINE INPUT #1, line$
  23.     PRINT line$
  24. LOOP
  25.  
  26.